import React from 'react';
import { render } from 'react-dom';
import {
  HashRouter,
  Route,
  Link,
  Switch,
} from 'react-router-dom'
import AdminIndex from './component/admin/index';
import AdminLogin from './component/admin/login';
import AdminNews from './component/admin/news';
import AdminUser from './component/admin/user';
import AdminComments from './component/admin/comments';

import 'antd/dist/antd.css';

render(
	<HashRouter>
		<div id='root'>
			<Route exact path='/' component={ AdminIndex } />
			<Route path='/login' component={ AdminLogin } />
			<Route path='/news' component={ AdminNews } />
			<Route path='/user' component={ AdminUser } />
			<Route path='/comments' component={ AdminComments } />
		</div>
	</HashRouter>
	,document.getElementById('app')
)
